/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.dcpApplication.question1.inheritance.inheritanceImpl;

/**
 *
 * @author spheshie
 */
public class Computer {
    
    private int speed;
    private int processor;
    
    public Computer() {}
  
    public Computer(int s, int p)
    {
        speed = s;
        processor = p;
    }
  
    public int getSpeed()
    {
        return speed;
    }
  
    public int getProcessor()
    {
        return processor;
    }
  
    public void setProcessor(int typeProcessor)
    {
        processor = typeProcessor;
    }
  
    public void setSpeed(int powerSpeed)
    {
        speed = powerSpeed;
    }
  
    public String toString()
    {
      return "The speed is: " + speed +" The processor type is:"+ processor;
    }
    
}
